package com.zhkj.shixi.tvfilemanager.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by nieshuang on 19-8-13.
 */

public class DateUtil {
    //时间戳转换日期
    public static String stampToTime(Long stamp) {
        String sd = "";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        sd = sdf.format(new Date(stamp)); // 时间戳转换日期
        return sd;
    }
}
